/*javascript registros*/

$(document).ready
(
    
  function () 
  { 
        $( "#lb_date" ).mask("9999-99-99");
        
        /*$( "#clvmedic" ).mask("AAA-99999");*/
    
		$( "#lb_date" ).datepicker({
		  changeMonth: true,
		  changeYear: true,
		  dateFormat: "dd-mm-yy",
		  yearRange: '1900:2014',
		  dateFormat: 'yy-mm-dd'
		});
		
		
			$(function()
			{ 
				$( "#terminos" ).dialog(
				{
					resizable: true,
					autoOpen: false,
					title: "Términos de Uso",
					closeOnEscape: true,
					hide: { effect: "blind", duration: 1000 },
					height: 410,
					width: 410,
					modal: true,
					show: { effect: "blind", duration: 800 },
					buttons: [
					{
					  text: "Ok",
					  click: function() {
						$( this ).dialog( "close" );
					  }
					}
				  ]
					
				});
				
				$( "#a_terms" ).click(function() {
				  $( "#terminos" ).dialog( "open" );
				});
				
		});
		
		
		$("#lb_error").addClass('ui-state-error ui-corner-all');

			
	  });

